The Dreamweaver JavaScript API > History functions > dreamweaver.getUndoText()

 

dreamweaver.getUndoText()

Availability

Dreamweaver 3.0

Description

Gets the text associated with the editing operation that will be undone if the user chooses Edit > Undo or presses Ctrl+Z (Windows) or Command+Z (Macintosh).

Arguments

None.

Returns

A string containing the text associated with the editing operation that will be undone.

Enabler

None.

Example

If the user's last action was to apply a CSS style to a selected range of text, a call to dw.getUndoText() would return "Undo Apply <span>".